package tmp;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class MSR1Util {

	public static boolean writeToFS(String content) throws IOException {

		File file = new File("door_data.txt");

		// if file doesnt exists, then create it
		if (!file.exists()) {
			file.createNewFile();
		}

		FileWriter fw = new FileWriter(file,true);
//		BufferedWriter bw = new BufferedWriter(fw);
//		bw.append(content);
		fw.append(content);
		fw.flush();
		fw.close();
		
//		bw.flush();
//		bw.close();
		return true;

	}
}
